package com.mtao.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.time.LocalDateTime;

/**
 * @program: ems-admin-boot
 * @description: this is a class
 * @author: starao
 * @create: 2021-11-27 13:25
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysLog {

    private Long id;

    private String logType;

    private String method;

    private String params;

    private long time;

    private String ip;

    private String username;

    private String exceptionDetail;

    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private LocalDateTime createTime;

    public SysLog(String logType, long time){
        this.logType = logType;
        this.time = time;
    }
}
